#ifndef __wifi_h_
#define __wifi_h_

#include "SYSTEM.h"


#if 1 
#define WIFI_DEBUG(format, ...) lvgl_project_debug("[WIFI]-",format,##__VA_ARGS__);
#else
#define WIFI_DEBUG(format, ...) ;
#endif


typedef struct
{

  wifi_config_t wifi_config;
  void(*cb)(char * text, void *dat);

}_wifi_data;

extern _wifi_data wifi_data;

enum wifi_sta {
	wifi_weilianjie = 0,
	wifi_yilianjie,
	wifi_lianjiehzong,
	wifi_lianjieshibai,
  wifi_qingqiuduankai,
  wifi_yiduankai,
};


void wifi_init(void);
int wifi_scan_list_start(void);
int wifi_scan_list_get(void);
void wifi_lianjie(char *name, char *password, void(*cb)(char * text, void *dat));
void wifi_lianjie_chenggong(system_event_t *event);
void wifi_lianjie_shibai(system_event_t *event);



#endif